package dialogs;

import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.example.administrator.newxlmedical.R;
import com.irisian.irissdk.IrisSdk;

import beans.UserManageBean;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import custom.MyDialog;

/**
 * Created by Administrator on 2018/5/15.
 */

public class UserManageIrisDialog extends MyDialog {

    @BindView(R.id.iv_dialog_user_manage_iris_close)
    ImageView ivClose;
    private Context mContext;


    public UserManageIrisDialog(@NonNull Context context, int themeResId) {
        super(context, themeResId);
        mContext = context;
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.dialog_user_manage_iris);
        ButterKnife.bind(this);
    }

    @OnClick({R.id.iv_dialog_user_manage_iris_close})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.iv_dialog_user_manage_iris_close:
                dismiss();
                IrisSdk.stopReadDistance(mContext);
                IrisSdk.closeCamera(mContext);
                IrisSdk.releaseSdk(mContext);
                break;
        }
    }
}
